package com.google.codejam.core.test;

/**
 * Abstract base class for a Code Jam Test case implementation.
 */
public abstract class ACodeJamTestCase implements ISolvable, IDataParser
{
	public static int test_case_counter = 1;
	int case_number;

	/**
	 * Default constructor that increments and sets the current test case number.
	 */
	public ACodeJamTestCase()
	{
		this.case_number = test_case_counter++;
	}

	/**
	 * Returns the current test case number.
	 * @return <code>int</code> larger than 1.
	 */
	public int getCaseNumber()
	{
		return case_number;
	}

	@Override
	public String getResultString()
	{
		return "Case #" + case_number + ": ";
	}
}
